
namespace ZR.Model.Business
{
    /// <summary>
    /// 部门配置表
    /// </summary>
    [SugarTable("sys_dept")]
    public class Dept
    {
        /// <summary>
        /// 部门ID 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long DeptId { get; set; }

        /// <summary>
        /// 父部门ID 
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 祖级列表 
        /// </summary>
        public string Ancestors { get; set; }

        /// <summary>
        /// 部门名称 
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 显示顺序 
        /// </summary>
        public int? OrderNum { get; set; }

        /// <summary>
        /// 负责人 
        /// </summary>
        public string Leader { get; set; }

        /// <summary>
        /// 联系电话 
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱 
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 部门状态:0正常,1停用 
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 删除标志（0代表存在 2代表删除） 
        /// </summary>
        public int? DelFlag { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// Remark 
        /// </summary>
        public string Remark { get; set; }

    }
}